package chap4.Task1;
import java.util.Scanner;
public class Task2 {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        System.out.print("请输入一个正整数:");
        int a = input.nextInt();
        System.out.print(a + "=");
        for (int i = 2; i <= a; i++) {
            if (a % i == 0 && a != i) {
                System.out.print(i + "*");
                a = a / i;
                i = i - 1;
            }
            if (i == a) {
                System.out.print(a);
                break;
            }
        }
    }
}
